<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>分类管理</title>
    <link type="text/css" rel="stylesheet" href="http://localhost/www/item/yushen/Static/hdjs/hdui.css"/>
    <style type="text/css">
    	textarea{
    		width: 200px;
    	}
    </style>
</head>
<body>
<div class="wrap">
    <div class="title-header">修改分类</div>
    <form action="" method="post" class="form-inline hd-form">
        <table class="table1">
            <tr>
                <th class="w100">分类名称</th>
                <td  class="w100">
                    <input type="text" name="cname" class="w200" value="<?php echo $oldData['cname'];?>"/> 
                </td>
                <td>分类名称长度 1 到 20 位</td>
            </tr>
            <tr>
                <th class="w100">所属分类</th>
                <td>
                    <select name="pid" class="w200">
                        <option value="0">顶级分类</option>
                        
                        <?php foreach ($cateData as $k=>$v){?>
                        	<!-- ep 相当于 =号  以后经常要这么写  别的地方不解析    -->
                        	<option value="<?php echo $v['cid'];?>"     <?php if($oldData['pid']==$v['cid']){ ?>selected="selected"<?php } ?>><?php echo $v['cname'];?></option>
                        <?php }?>                   
                    </select>
                </td>
                <td></td>
            </tr>
          
            <tr>
                <th class="w100">分类排序</th>
                <td>
                    <input type="text" name="sort" class="w200" value="<?php echo $oldData['sort'];?>"/>
                </td>
                <td>请填写1到65535的排序数字 </td>
            </tr>
                <td></td>
            </tr>
            <tr>
            	<td></td>
            </tr>
            <tr>
            	<td></td>
            </tr>
            <tr>
            	<td></td>
            </tr>
            <tr>
            	<td></td>
            </tr>
        </table>
        <div class="position-bottom">
        	<input type="hidden" class="cid" value="<?php echo $hd['get']['cid'];?>"/>
            <input type="submit" class="hd-success" value="修改"/>
        </div>
    </form>
</div>
</body>
</html>